package com.plian.system.service.sys.warning;

import com.plian.system.entity.sys.warning.WarningMessage;
import com.plian.system.model.ListResult;
import com.plian.system.mybatis.base.BaseService;
import com.plian.system.mybatis.support.Query;
import com.plian.system.vo.sys.warning.WarningMessageVO;

public interface IWarningMessageService extends BaseService<WarningMessage> {

    boolean submit(WarningMessage warningMessage);

    ListResult<WarningMessageVO> list(Query query);

    WarningMessageVO detail(WarningMessage warningMessage);
    /**
     * @Description: // 催办
     * @Author: Take-off
     * @Date: 10:27 AM 2023/5/4
     * @Param: [id]
     * @return: void
     **/
    void sendMessages(Long id);

    /**
     * 产权预警消息 预警后5个工作日 转为橙色预警
     */
    void propertyMessageChangeLight();


    /**
     * 反馈
     * @param warningMessageVO
     * @return
     */
    boolean feedback(WarningMessageVO warningMessageVO);

    /**
     * 反馈驳回
     * @param warningMessageVO
     * @return
     */
    boolean feedbackReject(WarningMessageVO warningMessageVO);
}
